package com.zmn.plat.dubbo.interfaces.orderconfig.comment;

import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.plat.common.dto.orderconfig.comment.OrderCommentDIO;
import com.zmn.plat.common.dto.orderconfig.comment.OrderCommentDRO;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

/**
 * @author tanbiao
 * @description
 * @since 2019/10/25 9:39
 * @modifier
 **/
@Api(value = "评价内容服务", tags = {"评价内容"})
public interface OrderCommentListRemoteService {
    /**
     * 描述: 根据主键查询评价内容
     *
     * @param id
     * @return OrderCancelCategoryDRO
     * @auther: tanbiao
     * @since: 2019/10/23 11:11
     */
    @ApiOperation(value = "根据主键查询评价内容", response = ResponseDTO.class, notes = "", tags = {"评价内容"})
    ResponseDTO<OrderCommentDRO> getById(@NotNull(message = "id不能为空") @Positive(message = "id必须为大于0的正整数") @ApiParam(value = "主键id", required = true) Integer id);

    /**
     * 描述: 根据条件查询评价内容
     *
     * @param orderCommentDIO
     * @return OrderCancelCategoryDRO
     * @auther: tanbiao
     * @since: 2019/10/23 11:11
     */
    @ApiOperation(value = "根据条件查询评价内容", response = ResponseDTO.class, notes = "", tags = {"评价内容"})
    ResponseDTO<List<OrderCommentDRO>> listByQuery(@NotNull(message = "入参不能为空") @Valid @ApiParam(value = "查询条件", required = true) OrderCommentDIO orderCommentDIO);
}
